	
	//라운드목록
	function clsClubRoundView_Info(){
		this._HTMLDom = null;
		this.listData = null;
		this._init();
	}
	
	clsClubRoundView_Info.prototype = {
		_init: function(){
			var $layer = $("section#club_round_view>section ul.view_cont");
			var $bt1 = $("section#club_round_view>section div.bt_assign");
			var $bt2 = $("section#club_round_view>section div.btn_col");
			this._HTMLDom = {
				"$layer": $layer
				, "$bt1": $bt1
				, "$bt2": $bt2
			}			
			$bt1.find("div:eq(1) a").hide();
			$bt2.hide();
		}
		, setData: function(thisData){
			this.listData = thisData;
			this.display();
		}	
		, display: function(){
			var $layer = this._HTMLDom["$layer"];
			var $bt1 = this._HTMLDom["$bt1"];
			var $bt2 = this._HTMLDom["$bt2"];
			
         //제목,상태
         $layer.find(">li:eq(0) div.sub_tit").contents().filter(function(){
         		return (this.nodeType==3&&this.data.trim());
        	}).after(this.listData["라운드명"]).remove();
			if(this.listData["라운딩진행상태"]=="P"){
				$layer.find(">li:eq(0) div.sub_tit span").attr("class", "state_ing").html("진행");
			}else if(this.listData["라운딩진행상태"]=="C"){
				$layer.find(">li:eq(0) div.sub_tit span").attr("class", "state_ok").html("확정");
			}else if(this.listData["라운딩진행상태"]=="D"){
				$layer.find(">li:eq(0) div.sub_tit span").attr("class", "state_finish").html("마감");
			}			
			//일자정보,코스,홀
			$layer.find(">li:eq(1) ul li:eq(0)").html(_util.fDateYmd(this.listData["라운드일자"]) +"&nbsp;("+ this.listData["라운드요일"] +")&nbsp;"+ this.listData["라운드시간"]);
			$layer.find(">li:eq(1) ul li:eq(1)").html(this.listData["코스명"]);
			$layer.find(">li:eq(1) ul li:eq(2)").html(this.listData["홀수"] +"H");
			$layer.find(">li:eq(1) ul li:eq(3)").html(this.listData["모집팀수"] +"팀("+ this.listData["모집인원수"] +"명)");
			//신청/배정정보		
			this.listData["배정완료수"] = 1;
			$layer.find(">li:eq(2) div").contents().filter(function(){
         		return (this.nodeType==3&&this.data.trim()&&this.data.indexOf("명")>-1);
        	}).after(this.listData["신청인원수"] +"명 신청&nbsp;").remove();        	
        	$layer.find(">li:eq(2) div mark").html(this.listData["배정완료수"] +"명");
        	//참여상태 N=미신청,R=신청완료,A=배정완료			
			var tmp=0;						
			if(this.listData["신청상태"]=="N") tmp=0;
			if(this.listData["신청상태"]=="R") tmp=1;
			if(this.listData["신청상태"]=="A") tmp=2;			
			$layer.find(">li:eq(3) ul li:even").removeClass("state").eq(tmp).addClass("state");						
			//상세내용
			$layer.find(">li:eq(4) div").html(this.listData["내용"]);
			//신청/취소버튼
			$bt1.find("div:eq(1) a").hide().eq((tmp==0?0:1)).show();
			//배정/수정/삭제버튼
			if(this.listData["관리자유무"]){
				$bt2.show();
			}
		}
		, $getLayer: function(){			
			return this._HTMLDom["$layer"];
		}
		, $getBtnTeam: function(){
			return this._HTMLDom["$bt1"].find("div:eq(0) a");
		}
		, $getBtnAccept: function(){
			return this._HTMLDom["$bt1"].find("div:eq(1) a:eq(0)");
		}
		, $getBtnAcceptCancel: function(){
			return this._HTMLDom["$bt1"].find("div:eq(1) a:eq(1)");
		}
		, $getBtnConfirm: function(){
			return this._HTMLDom["$bt2"].find("a:eq(0)");
		}
		, $getBtnUpdate: function(){
			return this._HTMLDom["$bt2"].find("a:eq(1)");
		}
		, $getBtnDelete: function(){
			return this._HTMLDom["$bt2"].find("a:eq(2)");
		}
	}
	
	//댓글목록
	function clsClubRoundView_Reply(){
		this.listData = null;
		this._HTMLDom = null;
		this.errMsg = null;
		this._ERRMSG = {
				"_NOVALUE" : "댓글을 입력해주십시요."
				, "_MAXLEN": "한글 100자 이내로 입력해주십시요."
		}
		this._init();
	}
	
	clsClubRoundView_Reply.prototype = {
		_init: function(){
			var $layer =  $("section#club_round_view>section div.reply_area");
			this._HTMLDom = {
				"$layer": $layer
				, "$element": $layer.find("ul>li:first")
			}
			
			$layer.find(">ul").empty();
			$layer.find("textarea").val("");
		}
		, setList: function(thisData){
			this.listData = thisData;
			this.display();
		}
		, display: function(){
			var $layer = this._HTMLDom["$layer"];
			var $element = this._HTMLDom["$element"];
			var thisClass = this;
			
			$layer.find(">ul").empty();
			
			for(var i=0;i<this.listData.length;++i){
				$layer.find(">ul").append($element.clone(true));		
			}
			
			$layer.find(">ul li").each(function(n){
				$(this).find("img").attr("src", _util.getDefaultProfileImage(thisClass.listData[n]["프로필"]["이미지"]));
				$(this).find("h3").html(thisClass.listData[n]["프로필"]["닉네임"]);
				$(this).find("p").html(thisClass.listData[n]["내용"]);
				$(this).find("time").html(_util.fDateYmd(thisClass.listData[n]["작성일"]) +"&nbsp;"+ _util.fTime(thisClass.listData[n]["작성시간"]));
				if(thisClass.listData[n]["본인글"]=="N") $(this).find("button").hide();	
			});
			
			$layer.find("h5 mark").html("("+ this.listData.length +")");
		}
		, $getBtnDelete: function(){
			return this._HTMLDom["$layer"].find("ul li button");
		}
		, $getBtnReg: function(){
			return this._HTMLDom["$layer"].find("div.reply_write form fieldset div:eq(1) a");
		}	
		, $getLayer: function(){
			return this._HTMLDom["$layer"];	
		}
		, getReplyText: function(){
			var txt = this._HTMLDom["$layer"].find("textarea").val();
			this._HTMLDom["$layer"].find("textarea").val("");
			return txt;
		}
		, isValid: function(){
			var txt = this._HTMLDom["$layer"].find("textarea").val().trim();			
			
			if(txt.length == 0){
				this.errMsg = this._ERRMSG["_NOVALUE"];
				return false;	
			}else if(_util.getByteLen(txt) > 100){
				this.errMsg = this._ERRMSG["_MAXLEN"];
				return false;	
			}
			return true;
		}
		, getError: function(){
			return this.errMsg;
		}
	}
	
	//데이터연동		
	function clsComm_ClubRoundView(){		
		this.clubRoundInfo = null;
		this.clubRoundInfoRequest = null;
		this.clubRoundReply = null;
		this.clubRoundReplyRequest = null;
		
		this._init();
	}	
	clsComm_ClubRoundView.prototype = {
		_init: function(){
			this.clubRoundInfoRequest = {
				 "동호회키":null
				, "라운드키": null
				, "페이지": null				
			}
			 
			this.clubRoundReplyRequest = {
				"동호회키": null
				, "라운드키": null
				, "댓글키": null	
			}
		}
//------------------------ 라운드목록------------------------//		
		, getClubRoundInfo: function(){
			var thisClass = this;
			
			var szClubSeq = this.clubRoundInfoRequest["동호회키"];
			var szRoundSeq = this.clubRoundInfoRequest["라운드키"]
			
			var objJson = new MJson();
        	var cm = new ConnectionManager();
			
			objJson.putClient("userid", _util.getLogin("아이디"));
        	objJson.putPub("sid", "CL001");
        	objJson.putPub("servicename","getMyClubRoundInfo");   
        					
        	objJson.putParameter("clubSeq", szClubSeq);
        	objJson.putParameter("roundSeq", szRoundSeq);
			
			cm.requestGet(objJson.getJsonString(), function(ret){
				this.clubRoundInfo = {};
				
				var items = ret["msp"]["contents"]["items"];
			
				if(items){
					var team = items["roundInfo"]["roundTeamInfoList"][0]["items"];
					var arr = [];
					
					if(team){
												
						if(!team.length){
							team = new Array(team);
						}						
						var user= [];						
						//팀별정보
						for(var k=0;k<team.length;++k){							
							user[k] = [];							
							//팀별 사용자(최대4명) 정보
							for(var m=0;m<4;++m){
								var str = "assignedUser"+ (m+1) +"Info";
								if(team[k][str]){
									user[k][m]={
										"아이디": _util.nvl(team[k][str]["userId"])
										, "이미지": _util.nvl(team[k][str]["path"]) + _util.nvl(team[k][str]["saveFileName"])
										, "닉네임": _util.nvl(team[k][str]["nickname"])
										, "지역": _util.nvl(team[k][str]["region"])
										, "연령대": _util.nvl(team[k][str]["age"])
										, "성별": _util.nvl(team[k][str]["sex"])
										, "핸디": _util.nvl(team[k][str]["handi"])
										, "평타": _util.nvl(team[k][str]["average"])
									}								
								}
							}
							
							arr.push({
								"팀키": _util.nvl(team[k]["teamSeq"])
								, "팀명": _util.nvl(team[k]["teamName"])
								, "라운드시간": _util.nvl(team[k]["roundHour"])
								, "라운드분": _util.nvl(team[k]["roundMinute"])
								, "사람1": _util.nvl(user[k][0])
								, "사람2": _util.nvl(user[k][1])
								, "사람3": _util.nvl(user[k][2])
								, "사람4": _util.nvl(user[k][3])
							});
						}
					}
					
					//동호회목록
					thisClass.clubRoundInfo= {
						"동호회키": _util.nvl(items["roundInfo"]["clubSeq"])
						, "프로필": {
							"아이디": _util.nvl(items["userMaster"]["userId"])
							, "닉네임": _util.nvl(items["userMaster"]["nickname"])
							, "이미지": _util.nvl(items["userMaster"]["path"]) + _util.nvl(items["userMaster"]["saveFileName"])
							, "성별": _util.nvl(items["userMaster"]["sex"])
							, "핸디": _util.nvl(items["userMaster"]["handi"])
							, "비거리": _util.nvl(items["userMaster"]["region"])
						} 
						, "라운드키": _util.nvl(items["roundInfo"]["roundSeq"])
						, "라운드일자": _util.nvl(items["roundInfo"]["reservDate"])
						, "라운드요일": _util.nvl(items["roundInfo"]["reservDay"])
						, "라운드시간": _util.nvl(items["roundInfo"]["firstTime"])
						, "코스명": _util.nvl(items["roundInfo"]["golfclubCourseInfo"])
						, "홀수": _util.nvl(items["roundInfo"]["holeInfo"])
						, "라운드명": _util.nvl(items["roundInfo"]["title"])
						, "모집팀수": _util.nvl(items["roundInfo"]["totalTeamCnt"])
						, "모집인원수": _util.nvl(items["roundInfo"]["totalMember"])
						, "신청인원수": _util.nvl(items["roundInfo"]["requestedMemberCnt"])
						, "배정완료수": _util.nvl(items["roundInfo"]["assignedMemberCnt"])
						, "라운딩진행상태": _util.nvl(items["roundInfo"]["procStatus"]) //진행중(0),확정(1),마감(2)													
						, "작성일자": _util.nvl(items["roundInfo"]["regDate"])
						, "작성시간": _util.nvl(items["roundInfo"]["regTime"])
						, "신청상태": _util.nvl(items["roundInfo"]["roundRequestUser"]["assignedStatus"])
						, "내용": _util.nvl(items["roundInfo"]["detail"])
						, "배정노출유무": _util.nvl(items["roundInfo"]["assignStatusDispYn"])
						, "팀정보": _util.nvl(arr,[])
						, "관리자유무": false
					};					
					
				}
			
				$(thisClass).trigger("evtFinishClubRoundInfo");
			}, function($err) {
				alert("evtFinishClubRoundInfo->"+$err);
			});	
		}
		, getClubRoundInfoData: function(){
			return this.clubRoundInfo;
		}
		, setClubRoundInfoRequest: function(key, val){
			this.clubRoundInfoRequest[key] = val;
		}	
//------------------------ 라운드목록------------------------//		
//------------------------ 라운드댓글목록------------------------//		
		, getRoundReplyList: function(){			
			var thisClass = this;
		
			var szClubSeq = this.clubRoundReplyRequest["동호회키"];
			var szRoundSeq = this.clubRoundReplyRequest["라운드키"];
			
			var objJson = new MJson();
        	var cm = new ConnectionManager();
			
			objJson.putClient("userid", _util.getLogin("아이디"));
        	objJson.putPub("sid", "CL001");
        	objJson.putPub("servicename","getRoundReplyList");   
        	objJson.putPub("listcount",99);   
        	objJson.putPub("currpageno",1);   
        					
        	objJson.putParameter("clubSeq", szClubSeq);
        	objJson.putParameter("roundSeq", szRoundSeq);
			
			cm.requestGet(objJson.getJsonString(), function(ret){
				
				thisClass.clubRoundReplyList = [];
				
				var items = ret["msp"]["contents"]["items"];
			
				if(items){
					
					if(!items.length){
						items = new Array(items);
					}
					
					for(var i=0;i<items.length;i++){
						var arr = [];
						var obj = items[i];
						
						//동호회목록
						thisClass.clubRoundReplyList.push({
							"동호회키": _util.nvl(obj["clubSeq"])
							, "라운드키": _util.nvl(obj["roundSeq"])
							, "댓글키": _util.nvl(obj["replySeq"])
							, "프로필": {
								"아이디": _util.nvl(obj["regIdInfo"]["userId"])
								, "닉네임": _util.nvl(obj["regIdInfo"]["nickname"])
								, "이미지": _util.nvl(obj["regIdInfo"]["path"]) + _util.nvl(obj["regIdInfo"]["saveFileName"])
								, "성별": _util.nvl(obj["regIdInfo"]["sex"])
								, "핸디": _util.nvl(obj["regIdInfo"]["handi"])
								, "비거리": _util.nvl(obj["regIdInfo"]["region"])
							} 
							, "내용": _util.enter2br(_util.nvl(obj["content"]))
							, "작성일": _util.nvl(obj["regDate"])
							, "작성시간": _util.nvl(obj["regTime"])
							, "본인글": _util.nvl(obj["isMyReply"])
							, "관리자여부": _util.nvl(obj["adminFlag"])
						});
						
					}         
				}
				
				$(thisClass).trigger("evtFinishClubRoundReplyList");
			}, function($err) {
				alert("evtFinishClubRoundReplyList->"+$err);
			});	
		}
		, getRoundReplyListData: function(){
			return this.clubRoundReplyList;
		}
		, setClubRoundReplyRequest: function(key, val){
			this.clubRoundReplyRequest[key] = val;
		}
		, getClubRoundReplyRequest: function(key){
			return this.clubRoundReplyRequest[key];
		}	
//------------------------ 라운드댓글목록------------------------//		
//------------------------ 라운드신청------------------------//		

		, InsertAssign: function(arg){			
			var thisClass = this;
					
			var szClubSeq = arg["동호회키"];
			var szRoundSeq = arg["라운드키"];
					
			var objJson = new MJson();
        	var cm = new ConnectionManager();
			
			objJson.putClient("userid", _util.getLogin("아이디"));
        	objJson.putPub("sid", "CL001");
        	objJson.putPub("servicename","registClubRoundRequestUser");   
        					
        	objJson.putParameter("clubSeq", szClubSeq);
        	objJson.putParameter("roundSeq", szRoundSeq);
			
			cm.requestGet(objJson.getJsonString(), function(ret){
				
				var resData = {
					"응답코드": (ret["msp"]["contents"]["serviceResult"] == "00000"?true:false)
					, "메세지": _util.getResultMsg(ret)
				}
				
				$(thisClass).trigger("evtFinishRoundAssign", [resData]);				
			}, function($err) {
				alert("evtFinishRoundAssign->"+$err);
			});	
		}
//------------------------ 라운드신청------------------------//	
//------------------------ 라운드신청취소------------------------//		

		, CancelAssign: function(arg){			
			var thisClass = this;
					
			var szClubSeq = arg["동호회키"];
			var szRoundSeq = arg["라운드키"];
					
			var objJson = new MJson();
        	var cm = new ConnectionManager();
			
			objJson.putClient("userid", _util.getLogin("아이디"));
        	objJson.putPub("sid", "CL001");
        	objJson.putPub("servicename","cancelClubRoundRequestUser");   
        					
        	objJson.putParameter("clubSeq", szClubSeq);
        	objJson.putParameter("roundSeq", szRoundSeq);
			
			cm.requestGet(objJson.getJsonString(), function(ret){
				
				var resData = {
					"응답코드": (ret["msp"]["contents"]["serviceResult"] == "00000"?true:false)
					, "메세지": _util.getResultMsg(ret)
				}
				
				$(thisClass).trigger("evtFinishRoundAssign", [resData]);
				
			}, function($err) {
				alert("evtFinishRoundAssign->"+$err);
			});	
		}
//------------------------ 라운드신청취소------------------------//	
//------------------------ 라운드확정------------------------//		

		, ConfirmAssign: function(arg){			
			var thisClass = this;
					
			var szClubSeq = arg["동호회키"];
			var szRoundSeq = arg["라운드키"];
					
			var objJson = new MJson();
        	var cm = new ConnectionManager();
			
			objJson.putClient("userid", _util.getLogin("아이디"));
        	objJson.putPub("sid", "CL001");
        	objJson.putPub("servicename","confirmRound");   
        					
        	objJson.putParameter("clubSeq", szClubSeq);
        	objJson.putParameter("roundSeq", szRoundSeq);
			
			cm.requestGet(objJson.getJsonString(), function(ret){
				
				var resData = {
					"응답코드": (ret["msp"]["contents"]["serviceResult"] == "00000"?true:false)
					, "메세지": _util.getResultMsg(ret)
				}
				
				$(thisClass).trigger("evtFinishRoundAssign", [resData]);
				
			}, function($err) {
				alert("evtFinishRoundAssign->"+$err);
			});
		}
//------------------------ 라운드확정------------------------//	
//------------------------ 라운드삭제------------------------//		

		, DeleteRound: function(arg){			
			var thisClass = this;
					
			var szClubSeq = arg["동호회키"];
			var szRoundSeq = arg["라운드키"];
					
			var objJson = new MJson();
        	var cm = new ConnectionManager();
			
			objJson.putClient("userid", _util.getLogin("아이디"));
        	objJson.putPub("sid", "CL001");
        	objJson.putPub("servicename","deleteClubRound");   
        					
        	objJson.putParameter("clubSeq", szClubSeq);
        	objJson.putParameter("roundSeq", szRoundSeq);
			
			cm.requestGet(objJson.getJsonString(), function(ret){
				
				var resData = {
					"응답코드": (ret["msp"]["contents"]["serviceResult"] == "00000"?true:false)
					, "메세지": _util.getResultMsg(ret)
				}
				
				$(thisClass).trigger("evtFinishDeleteRound", [resData]);
				
			}, function($err) {
				alert("evtFinishDeleteRound->"+$err);
			});
		}
//------------------------ 라운드삭제------------------------//	
//------------------------ 댓글등록------------------------//		
		, InsertRoundReply: function(arg){
			var thisClass = this;
			
			var szClubSeq = arg["동호회키"]
			var szRoundSeq = arg["라운드키"];
			var szReplyContens = arg["내용"];
						
			var objJson = new MJson();
        	var cm = new ConnectionManager();
			
			objJson.putClient("userid", _util.getLogin("아이디"));
        	objJson.putPub("sid", "CL001");
        	objJson.putPub("servicename","registRoundReply");   
        					
        	objJson.putParameter("clubSeq", szClubSeq);
        	objJson.putParameter("roundSeq", szRoundSeq);
        	objJson.putParameter("content", encodeURIComponent(szReplyContens));
			
			cm.requestGet(objJson.getJsonString(), function(ret){
			
				var ret = {
					"응답코드": (ret["msp"]["contents"]["serviceResult"] == "00000"?true:false)
					, "메세지": _util.getResultMsg(ret)
				}
				
				$(thisClass).trigger("evtFinishCUDBaordViewReply",[ret]);
			}, function($err) {
				alert("evtFinishCUDBaordViewReply->"+$err);
			});	
		}
//------------------------ 댓글등록------------------------//					
//------------------------ 댓글삭제------------------------//			
		, DeleteRoundReply: function(arg){
			var thisClass = this;
			var szClubSeq = arg["동호회키"];
			var szRoundSeq = arg["라운드키"];
			var szReplySeq = arg["댓글키"];
			
			var objJson = new MJson();
        	var cm = new ConnectionManager();
			
			objJson.putClient("userid", _util.getLogin("아이디"));
        	objJson.putPub("sid", "CL001");
        	objJson.putPub("servicename","deleteRoundReply");   
        					
        	objJson.putParameter("clubSeq", szClubSeq);
        	objJson.putParameter("roundSeq", szRoundSeq);
        	objJson.putParameter("replySeq", szReplySeq);
			
			cm.requestGet(objJson.getJsonString(), function(ret){
				
				var ret = {
					"응답코드": (ret["msp"]["contents"]["serviceResult"] == "00000"?true:false)
					, "메세지": _util.getResultMsg(ret)
				}
				
				$(thisClass).trigger("evtFinishCUDBaordViewReply",[ret]);
			}, function($err) {
				alert("evtFinishCUDBaordViewReply->"+$err);
			});
		}		
//------------------------ 댓글삭제------------------------//			
	}
	
	//컨트롤파일
	function ClubRoundView(){				
		this.objComm = null;
		this.club_seq = null;	
		this.round_seq = null;
		
		this.club_info = null;		
		this.objClubRoundView_Info = null;
		this.objClubRoundView_Reply = null;
	};
	
	ClubRoundView.prototype = {
	    onPageShow : function() {	    
	    	$("a").attr("href", "").attr("data-rel", "");      
	    	this._init();	    		    	
	    }
	    , _beforeStart: function(){
	    	var 	thisClass = this;
	    	
	    	this._permitStart = {
				"동호회정보": false	
			}
			
	  		// 서버 메시지맵
			$.ajax({
				url: "../js/src/club/club_inc.js"
				, type: "get"
				, dataType: "script"
				, async: false
				, success: function(ret, sta){
					//alert("success!!");					
				}
				, error:function(e){
					alert("error=" + e);
				}	
			});
			
			_cb.getClubInfoData({
				"콜백": function(ret, l){
					thisClass._permitStart["동호회정보"] = true;	
				}
			});
			
			_util.executeThread(function(){
				for(key in thisClass._permitStart){		
					if(!thisClass._permitStart[key]) return false;
				}
				return (true);
			}, function(){			
				thisClass._start();
			});
	    }
	    , _init: function(){	    	    	
	    		    	
	    	this.objComm = new clsComm_ClubRoundView();
			this.objClubRoundView_Info = new clsClubRoundView_Info();
			this.objClubRoundView_Reply = new clsClubRoundView_Reply();
			
	      this.getParam();
	      
	      this._beforeStart();
	    	
	    	this._role();
	       
	      	this._bind();	 
	      	this._eventFinish();     	
	    }
	    , _start: function(){	    	
	    	//동호회기본정보
	    	this.club_info = _cb.getClubInfo();
	    	
	    	//라운드상세정보 조회
			this.spinStart();				
			this.objComm.setClubRoundInfoRequest("동호회키",this.club_seq);
			this.objComm.setClubRoundInfoRequest("라운드키",this.round_seq);
			this.objComm.getClubRoundInfo();
			
			//댓글목록 조회
			this.objComm.setClubRoundReplyRequest("동호회키",this.club_seq);
			this.objComm.setClubRoundReplyRequest("라운드키",this.round_seq);
			this.objComm.getRoundReplyList();
	    }
	    , _eventFinish: function(){
	    	var thisClass = this;
	    	
	    	//라운드정보 조회 완료 이벤트 
			$(this.objComm).bind("evtFinishClubRoundInfo", function(){
				var thisData = thisClass.objComm.getClubRoundInfoData();
				if(!thisData) {
					alert("조회된 라운드정보가 없습니다.");
					_gf.CLUB_DATA = {
						"동호회키": thisClass.club_seq	
					}
					//$.mobile.changePage("../club/club_round.html","slide",true);				
				}
				
				thisClass.spinEnd();
				thisData["관리자유무"] = thisClass.club_info.isAdmin();
				thisClass.objClubRoundView_Info.setData(thisData);
			});
			
			//라운드댓글 조회 완료 이벤트 
			$(this.objComm).bind("evtFinishClubRoundReplyList", function(){
				var thisData = thisClass.objComm.getRoundReplyListData();
				
				thisClass.spinEnd();
				thisClass.objClubRoundView_Reply.setList(thisData);	
			});
			
			// 게시판상세보기댓글 등록/삭제 완료이벤트
			$(this.objComm).bind("evtFinishCUDBaordViewReply", function(event, resData){				
				alert(resData["메세지"]);								
				if(!resData["응답코드"]) return;								
				thisClass.objComm.getRoundReplyList();			
			});

			//라운드정보 신청/신청취소/확정 완료 이벤트 
			$(this.objComm).bind("evtFinishRoundAssign", function(event, resData){
				alert(resData["메세지"]);		
				if(resData["응답코드"]){				
					thisClass.spinStart();
					thisClass.objComm.getClubRoundInfo();					
				}				
			});
			
			//라운드 삭제 완료 이벤트 
			$(this.objComm).bind("evtFinishDeleteRound", function(event, resData){
				alert(resData["메세지"]);		
				if(resData["응답코드"]){				
					_gf.CLUB_DATA = {
						"동호회키": thisClass.club_seq	
					}
					$.mobile.changePage("../club/club_round.html","slide",true);				
				}				
			});							    	
	    }
		 , _bind: function(){
		 	var thisClass = this;
		 	
		 	//팀배정하기
		 	this.objClubRoundView_Info.$getBtnTeam().click(function(event){
		 		event.preventDefault();
		 		_gf.CLUB_DATA = {
		 			"동호회키": thisClass.club_seq
		 			, "라운드키": thisClass.round_seq
		 		}
				$.mobile.changePage("club_assign_view.html","slide",true); 
		 	});
		 	
		 	//라운드신청
		 	this.objClubRoundView_Info.$getBtnAccept().click(function(event){
		 		event.preventDefault();
		 		var submitData = {
						"동호회키": thisClass.club_seq
						, "라운드키": thisClass.round_seq
				}
				thisClass.objComm.InsertAssign(submitData);
		 	});
		 	
		 	//라운드신청취소
		 	this.objClubRoundView_Info.$getBtnAcceptCancel().click(function(event){
		 		event.preventDefault();
		 		event.preventDefault();				
				var submitData = {
						"동호회키": thisClass.club_seq
						, "라운드키": thisClass.round_seq
				}
				thisClass.objComm.CancelAssign(submitData);
		 	});
		 	
		 	//라운드배정(확정)
		 	this.objClubRoundView_Info.$getBtnConfirm().click(function(event){
		 		event.preventDefault();							
				if(!confirm("배정 확정하시면 팀배정 상태가 모두에게 공개됩니다.\n확정하시겠습니까?")){
					return;
				}
				var submitData = {
						"동호회키": thisClass.club_seq
						, "라운드키": thisClass.round_seq
				}
				thisClass.objComm.ConfirmAssign(submitData);
		 	});
		 	
		 	//라운드수정
		 	this.objClubRoundView_Info.$getBtnUpdate().click(function(event){
		 		event.preventDefault();
		 		
		 		if(thisClass.objClubRoundView_Info.listData["라운딩진행상태"]=="D"){
					alert("마감된 정보는 수정하실 수 없습니다.");	
					return;
				}
				
				_gf.CLUB_DATA = {
		 			"동호회키": thisClass.club_seq
		 			, "라운드키": thisClass.round_seq
		 		}
				$.mobile.changePage("club_round_record.html","slide",true); 
		 	});
		 	
		 	//라운드삭제
		 	this.objClubRoundView_Info.$getBtnDelete().click(function(event){
		 		event.preventDefault();				
				var submitData = {
						"동호회키": thisClass.club_seq
						, "라운드키": thisClass.round_seq
				}
				thisClass.objComm.DeleteRound(submitData);
		 	});
		 	
		 	//댓글목록-등록
		 	this.objClubRoundView_Reply.$getBtnReg().click(function(event){
		 		event.preventDefault();
		 		
		 		if(!_util.getLogin("아이디")){		 			
		 			thisClass.goLogin();
		 			return;
		 		}else if(!thisClass.club_info.isMember()){
		 			alert("동호회에 가입되지 않은 회원은 이용하실 수 없습니다.");	
		 			return;
		 		}else if(!thisClass.objClubRoundView_Reply.isValid()){
		 			alert(thisClass.objClubRoundView_Reply.getError());
		 			return;	
		 		}
		 		
		 		var submitData = {
		 			"동호회키": thisClass.club_seq
		 			, "라운드키": thisClass.round_seq
		 			, "내용": thisClass.objClubRoundView_Reply.getReplyText()
		 		}
		 		
		 		thisClass.spinStart();
		 		thisClass.objComm.InsertRoundReply(submitData);
		 	});
		 	
		 	//댓글목록-삭제
		 	this.objClubRoundView_Reply.$getLayer().on("click", "button", function(event){
		 		event.preventDefault();
		 		var n = thisClass.objClubRoundView_Reply.$getLayer().find("button").index($(this));
		 		
		 		var submitData = {
		 			"동호회키": thisClass.club_seq
		 			, "라운드키": thisClass.round_seq
		 			, "댓글키": thisClass.objClubRoundView_Reply.listData[n]["댓글키"]
		 		}
		 				 		
		 		thisClass.spinStart();
		 		thisClass.objComm.DeleteRoundReply(submitData);
		 	});
		 		 	
		 	//메뉴
		 	$("section#club_round_view nav ul li a:eq(0)").click(function(event){
		 		event.preventDefault();
		 		thisClass.goNavi();
		 	});
		 	
		 	//알림
		 	$("section#club_round_view nav ul li:eq(1)").click(function(event){
		 		event.preventDefault();
		 		$.mobile.changePage("../inc/info_booking.html","slide",true);	
		 	});
		 	
		 	//이전
		 	$("section#club_round_view header div.top_title_B div.top_left a.btn10").click(function(event){
		 		event.preventDefault();
		 		_gf.CLUB_DATA = {
					"동호회키": thisClass.club_seq	
				}
		 		$.mobile.changePage("club_round.html","slide",true);	
		 	});
		 }
		 , getParam: function(){
	    	this.club_seq = _gf.CLUB_DATA["동호회키"];	    	    	
	    	this.round_seq = _gf.CLUB_DATA["라운드키"];
	    }
	    , _role: function(){
	    		
	   }
		, goNavi: function(){			
			$.mobile.changePage("../inc/navi.html","slide",true);
		}
		, goLogin: function(){
			_gf.LOGIN_DATA.loginAfterUrl = "../club/club_round.html";
			$.mobile.changePage("../member/login.html","slide",true); 
		}
	    , spinStart: function(){		
			$.mobile.showPageLoadingMsg();			
		}
		, spinEnd: function(){			
	 		$.mobile.hidePageLoadingMsg();				
		}
	}